<template>
  <div class="app-container">
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-download"
          size="mini"
          @click="downApp"
        >生成二维码</el-button>
      </el-col>
    </el-row>

    <img :src="imageUrl" />
  </div>
</template>

<script>
import api from "@/api/content/qrcode";

export default {
  name: "Qrcode",
  data() {
    return {
      url: '',
      urls: '',
      imageUrl:'',
    };
  },
  methods: {
    /**
     * 获取二维码
     */
    downApp(){
      api.downloadQrcode().then((val) => {
        console.log(val)
        this.imageUrl = val.data;
      })
    },
  }
};
</script>
